import config from "@/config"
import http from "@/utils/request"

export default {
	index: {
		url: `${config.API_URL}rechargeOrder/index`,
		name: "充值订单列表",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	create: {
		url: `${config.API_URL}rechargeOrder/create`,
		name: "创建充值订单",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	update: {
		url: `${config.API_URL}rechargeOrder/update`,
		name: "更新充值订单",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	delete: {
		url: `${config.API_URL}rechargeOrder/delete`,
		name: "删除充值订单",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	show: {
		url: `${config.API_URL}rechargeOrder/show`,
		name: "查看充值订单",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	audit: {
		url: `${config.API_URL}rechargeOrder/audit`,
		name: "审核充值订单",
		post: async function(data){
			return await http.post(this.url, data);
		}
	}
}
